export const pureZero = value => {
  return +value === 0 ? '' : value
}

export const pureDot = (value = '') => {
  return value.replace(/(?:\.0*|(\.\d+?)0+)$/, '$1')
}

export const pureUnit = (value, unit) => {
  return value ? `${value}${unit || ''}` : '-'
}
